import request from '@/utils/request'

export function getshopDoors() {
  return request({
    url: '/shopDoors',
    method: 'get',
    // params:
  })
}

export function putshopDoors(id ,obj) {
  console.log(id,obj);
  return request({
    url: `/shopDoors/${id}`,
    method: 'put',
    data:obj
  })
}

export function putadmin(id ,obj) {
  console.log(id,obj);
  return request({
    url: `/admin/${id}`,
    method: 'put',
    data:obj
  })
}

export function getadmin() {
  return request({
    url: '/admin',
    method: 'get',
  })
}
